package com.example.quartz;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysJob implements Serializable {

    @ApiModelProperty("主键id")
    private String id;

    @ApiModelProperty("任务名称")
    private String jobname;

    @ApiModelProperty("任务组名")
    private String jobgroup;

    @ApiModelProperty("运行状态")
    private Integer status;


    @ApiModelProperty("任务类型")
    private String type;


    @ApiModelProperty("类型编码 1 反射 2 rest 3 定时调用")
    private Integer typeCode;


    @ApiModelProperty("job反射路径")
    private String clazz;

    @ApiModelProperty("方法名")
    private String methodName;

    @ApiModelProperty("反射方法名")
    private String methodClazz;

    @ApiModelProperty("参数")
    private String param;


    @ApiModelProperty("rest定时调用")
    private String rest;


    @ApiModelProperty("cron表达式")
    private String cron;


    @ApiModelProperty("逻辑删除")
    private Integer deleteStatus;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;


    @ApiModelProperty("乐观锁")
    private Integer version;

}
